package com.dykj.fireFighting.server.base.video.service.impl;

import com.dykj.fireFighting.api.base.video.entity.Video;
import com.dykj.fireFighting.api.base.video.entity.VideoDevice;
import com.dykj.fireFighting.api.base.video.service.IVideoDeviceService;
import com.dykj.fireFighting.api.base.video.vo.VideoDeviceVo;
import com.dykj.fireFighting.common.core.service.impl.BaseServiceImpl;
import com.dykj.fireFighting.common.core.utils.UUIDUtils;
import com.dykj.fireFighting.server.base.video.mapper.VideoDeviceMapper;
import lombok.extern.slf4j.Slf4j;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.BeanUtils;
import org.springframework.transaction.annotation.Transactional;


import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * 摄像头设备中间表
 *
 * @Author JacksonTu
 * @Date  2021-07-23 13:34:10
 */
@Slf4j
@DubboService
@Transactional(rollbackFor = Exception.class)
public class VideoDeviceServiceImpl extends BaseServiceImpl<VideoDeviceMapper, VideoDevice> implements IVideoDeviceService {

    @Override
    public  int delByVideoId(String videoId){
        return baseMapper.delByVideoId(videoId);
    }

    @Override
    public List<String> getByVideoId(String videoId, Integer type){
        return baseMapper.getByVideoId(videoId,type);
    }
}
